<form method="post" name="create_or_edit_letters_form" action="?option=<?php echo COMPONENT_NAME;?>&page=configuration&action=set_letters">
<table>
	<tr class="HeaderTr">
		<td colspan="3"><b><?php echo $action;?></b></td>
	</tr>
	<tr>
		<td width="15%">Identifier</td>
		<td><input type="text" name="letter[identifier]" value="<?php echo $letter->identifier; ?>" /></td>
		<td rowspan="3" width="30%" valign="top">
			<?php foreach ($set_letter_config as $key=>$value){?>
				<?php echo "$key = $value<br />"?>
			<?php }?>
		</td>
	</tr>
	<tr>
		<td>Subject</td>
		<td><input type="text" name="letter[msg_subject]" value="<?php echo $letter->msg_subject; ?>" size="45" /></td>
	</tr>
	<tr>
		<td>Text</td>
		<td><?php echo editorArea( 'editor', $letter->msg_body, 'letter[msg_body]', '80%;', '250', '10', '10' ) ;?></td>
	</tr>
</table>
<input type="hidden" name="lid" value="<?php echo $letter->id;?>" />
<input type="hidden" name="form" value="save_letter" />
</form>
<?php $KToolBar->addLink('<a href="#" onclick="document.create_or_edit_letters_form.submit()"><img border="0" alt="Save" src="images/save_f2.png"/><br />Save</a>');?>
<?php $KToolBar->addLink('<a href="?option='.COMPONENT_NAME.'&page=configuration&action=set_letters"><img border="0" alt="Cancel" src="images/cancel_f2.png"/><br />Cancel</a>');?>
